<template>
	<view class="back-top" @tap="backTop">
		<text class="wlIcon-31huidaodingbu" style="font-size: 42rpx;margin-top: 6rpx;"></text>
	</view>
</template>

<script>
	export default {
		name: "back-top",
		data() {
			return {
			};
		},
		methods: {
			backTop() {
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 300
				})
			}
		}

	}
</script>

<style>
	.back-top {
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: white;
		width: 70rpx;
		height: 70rpx;
		border-radius: 50%;
		box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.05);
	}
</style>